<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"
	import="java.sql.*,com.utils.*"%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>在此处插入标题</title>
</head>
<body>
<%
		StringBuffer sb = new StringBuffer();
		String sql = "SELECT * FROM information";
		ResultSet rs = DBUtil.executeQuery(sql);
		while (rs.next()) {
			sb.append("<tr><td width='20%'>");
			sb.append(rs.getString("times"));
			sb.append("</td><td>");
			sb.append(rs.getString("info"));
			sb.append("</td></tr>");
		}
%>
<jsp:include page="teacher_head.jsp"></jsp:include>
	<div class="container">
		<br />
		<div class="row">
			<div class="col-md-offset-1 col-md-10">
				<div class="panel panel-info">
					<div class="panel-heading">
						<h3 class="panel-title">
							<span class="glyphicon glyphicon-th-list"></span>新增通知消息
						</h3>
					</div>
					<div class="panel-body">
						<form class="form-inline" role="form" action="../AddNotify" method="post">
							<div class="form-group">
								<input type="text" name="information" class="form-control" placeholder="通知消息内容*"> 
								<input type="submit" class="btn btn-info" value="发送" />
							</div>
						</form>
						
						<table class="table table-bordered">
						</table>
					</div>
				</div>
			</div>
		</div>
		<br />
		<div class="row">
			<div class="col-md-offset-1 col-md-10">
				<div class="panel panel-info">
					<div class="panel-heading">
						<h3 class="panel-title">
							<span class="glyphicon glyphicon-th-list"></span>已有通知消息
						</h3>
					</div>
					<div class="panel-body">
						<form class="form-inline" role="form">
							<table class="table table-bordered">
								<tr>
									<th class="col-md-12" colspan="2" style="text-align: center">通知内容</th>
								</tr>
								<%=sb.toString()%>
							</table>
						</form>

						<table class="table table-bordered">
						</table>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
</html>